<?php
/**
 * Created by PhpStorm.
 * User: 13469
 * Date: 2018/12/8
 * Time: 10:32
 */ 
header("Content-Type:application/json;charset=utf-8");
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept,x-www-form-urlencoded");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');
header("Access-Control-Allow-Credentials:true"); 
$hostNAME="localhost";
$connNAME="root";
$connPWD="";
$dbNAME="Cherry";
$dbPORT="3306";
$conn=new mysqli($hostNAME,$connNAME,$connPWD,$dbNAME,$dbPORT);
mysqli_query($conn,"set names utf8");
